package com.qianda.qdminiapp.dao.order;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianda.qdminiapp.domain.data.OrderTowalData;
import com.qianda.qdminiapp.domain.model.order.QqdOrderTowel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 毛巾购买订单 Mapper 接口
 * </p>
 *
 * @author cw
 * @since 2019-08-14
 */
public interface QqdOrderTowelDao extends BaseMapper<QqdOrderTowel> {

    /**
     * 查询用户订单
     * @param orderTowalDataIPage
     * @param userId
     * @return
     */
    List<OrderTowalData> findTowalList(IPage<OrderTowalData> orderTowalDataIPage, Long userId);


    List<QqdOrderTowel> findNotRefundOrder(@Param("params")Map<String,Object> params);
}
